home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMP Graphics Collection
/
AMP Graphics Collection.iso
/
programs
/
author
/
dirwin
/
data.z
/
PLINE32.DLL
/
SCRIPT
/
IDENTIFY
next >
Wrap
Text File
|
1996-03-15
|
4KB
|
216 lines
LCD,$30000,sVARB
SSET,SVARX,"2400,N,8,1"
SETCOMM,SVARX
SET,VAR0,3
FLUSH,0
SEND,"AT&F",3
WAITFOR,"OK",VAR0,GOTOK1
FLUSH,0
SEND,"AT&F",3
WAITFOR,"OK",VAR0,GOTOK1
FLUSH,0
SSET,SVARX,"9600,N,8,1"
SETCOMM,SVARX
SEND,"AT&F",3
WAITFOR,"OK",VAR0,GOTOK2
JUMP,BADPORT
GOTOK2: set,varf,1
GOTOK1: FLUSH,0
LCD,$30001,sVARB
SEND,"AT&F",3
WAITFOR,"OK",VAR0,GOTOK
JUMP,BADPORT
GOTOK: TRAPCOMM,sVAR0
FLUSH,0
SEND,"ATE0",3
WAITFOR,"OK",VAR0,&NEXT
FLUSH,0
SEND,"ATX4",3
WAITFOR,"OK",VAR0,&NEXT
TRAPCOMM,sVAR1
FLUSH,0
IF,VAR7,=,0,SKIPIT
LCD,$30002,sVARB
SEND,"AT+FCLASS=?",3
WAITFOR,"OK",VAR0,&NEXT
TRAPCOMM,sVAR2
SET,VAR6,2
LOOKFOR,"2",Class2
SET,VAR6,1
JUMP,class1
class2: FLUSH,0
SEND,"AT+FMFR?",3
WAITFOR,"OK",VAR0,&NEXT
TRAPCOMM,sVAR3
FLUSH,0
SEND,"AT+FMDL?",3
WAITFOR,"OK",VAR0,&NEXT
TRAPCOMM,sVAR4
FLUSH,0
LCD,$30003,""
SEND,"AT+FREV?",3
WAITFOR,"OK",VAR0,&NEXT
TRAPCOMM,sVAR5
FLUSH,0
SEND,"AT+FDCC=?",3
WAITFOR,"OK",VAR0,&NEXT
TRAPCOMM,sVAR6
FLUSH,0
IF,VAR6,=,2,skipit
class1: FLUSH,1
SETCOMM,"19200,n,8,1"
SEND,"AT+FCLASS=1",3
WAITFOR,"OK",5,&NEXT
SEND,"AT+FTM=?",3
WAITFOR,"OK",VAR0,&next
TRAPCOMM,sVAR7
FLUSH,0
SEND,"AT+FRM=?",3
WAITFOR,"OK",VAR0,&next
TRAPCOMM,sVAR8
FLUSH,0
SEND,"AT&F",3
FLUSH,1
SETCOMM,SVARX
SEND,"AT",3
WAITFOR,"OK",VAR0,&NEXT
FLUSH,0
SEND,"AT&F",3
WAITFOR,"OK",VAR0,&NEXT
FLUSH,1
skipit: FLUSH,0
LCD,$30004,""
SET,VAR5,0
SETCOMM,"9600,n,8,1"
FLUSH,0
SEND,"AT",3
WAITON,"OK",VAR0,Maxed,""
SET,VAR5,1
SETCOMM,"19200,n,8,1"
FLUSH,0
SEND,"AT",3
WAITON,"OK",VAR0,maxed,""
SET,VAR5,2
maxed: FLUSH,0
SETCOMM,SVARX
FLUSH,0
SEND,"ATX4",3
WAITFOR,"OK",VAR0,&next
FLUSH,0
LCD,$30005,""
FLUSH,0
IF,VARC,=,0,ESOUND
SEND,"ATM0",3
WAITFOR,"OK",VAR0,&NEXT
FLUSH,0
ESOUND: SET,VAR8,0
DTC: OFFHOOK,1
SEND,"ATL0DT,",0
IF,VAR8,=,0,NOPREFIX
SEND,"9,",0
NOPREFIX: SET,VAR1,0
SEND,",",3
LL: LOOKFOR,"BUSY",TRAPIT
LOOKFOR,"NO CARRIER",TRAPIT
LOOKFOR,"NO DIALTONE",TRAPND
LOOKFOR,"VOICE",TRAPIT
ADD,VAR1,1
IF,VAR1,>,10,TRAPIT
WAIT,1
JUMP,LL
TRAPND: IF,VAR8,=,1,TRAPIT
SET,VAR8,1
FLUSH,1
JUMP,DTC
TRAPIT: TRAPCOMM,sVAR9
NOOK: OFFHOOK,0
SETCOMM,SVARX
FLUSH,0
LCD,$30006,""
SEND,"AT",3
WAIT,1
FLUSH,0
SEND,"AT&F",3
WAITFOR,"OK",VAR0,&next
FLUSH,0
SEND,"ATI3",3
WAITFOR,"OK",VAR0,&next
TRAPCOMM,sVARA
FLUSH,0
IF,VAR7,<>,0,ENHANCE
SET,VAR0,10
SEND,"ATI0",3
WAITFOR,"OK",var0,&next
TRAPCOMM,SVARB
FLUSH,0
SEND,"ATI5",3
set,varz,0
set,varq,0
L5: lookfor,$30048,LL5
lookfor,"eady",R1
lookfor,"ontinue",R1
add,varz,1
wait,1
if,varz,>,10,LL5
jump,l5
R1: if,varq,=,0,$endif
TRAPCOMM,sVARG
set,varq,1
endif
flush,0
send," ",3
jump,l5
LL5: if,varq,=,0,$endif
TRAPCOMM,sVARG
endif
FLUSH,0
JUMP,GOODEX
ENHANCE: SEND,"AT&F",3
WAITFOR,"OK",VAR0,&next
FLUSH,0
LCD,$30008,""
SET,VAR0,10
SEND,"ATI0",3
WAITFOR,"OK",VAR0,&next
TRAPCOMM,sVARB
FLUSH,2
SEND,"ATI1",3
WAITFOR,"OK",VAR0,&next
TRAPCOMM,sVARC
FLUSH,2
SEND,"ATI2",3
WAITFOR,"OK",VAR0,&next
TRAPCOMM,sVARD
FLUSH,2
SEND,"ATI3",3
WAITFOR,"OK",VAR0,&next
TRAPCOMM,sVARE
FLUSH,2
SEND,"ATI4",3
WAITFOR,"OK",VAR0,&next
TRAPCOMM,sVARF
FLUSH,2
SEND,"ATI5",3
WAITFOR,"OK",VAR0,&next
TRAPCOMM,sVARG
FLUSH,2
SEND,"ATI6",3
WAITFOR,"OK",VAR0,&next
TRAPCOMM,sVARH
FLUSH,2
SEND,"ATI7",3
WAITFOR,"OK",VAR0,&next
TRAPCOMM,sVARI
FLUSH,2
SEND,"AT&V",3
WAITFOR,"OK",var0,&next
TRAPCOMM,sVARJ
FLUSH,2
LCD,$30007,""
FLUSH,0
SEND,"AT&F",3
WAITFOR,"OK",VAR0,&next
FLUSH,0
GOODEX: EXIT,0
BADPORT: EXIT,1